home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Pointer Problems
- Date: Thu, 04 Apr 96 21:59:35 GMT
- Organization: none
- Message-ID: <828655175snz@genesis.demon.co.uk>
- References: <3163BAEB.41C67EA6@cs.cf.ac.uk>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <3163BAEB.41C67EA6@cs.cf.ac.uk> O.Huw@cs.cf.ac.uk "Owain" writes:
-
- >I'm getting this error everytime I try to access a structure element in
- >a Linked List. I'm using e.g. listpointer = listpointer -> link
- >but it doesn't seem to like it! Any ideas?
-
- Post the code. Without seeing what you are actually doing and the
- declarations involved there's not much to say.
-
- >warning: assignment type mismatch:
- > pointer to struct {int dataitem, pointer to struct listelement
- >{..} link} "=" pointer to struct listelement {}
-
- So the type of the thing on the left of the = is different to that on the
- right. Show code and we might be able to see what those types actually
- are.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-